package cn.com.shopec.erp.stock.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: StockIn
 * @Description: 入库信息实体类
 * @author: zengxuezhou
 * @date: 2016年11月28日 下午2:26:35
 */
@Entity
@Table(name = "TBL_STOCKIN")
public class StockIn implements Serializable {

	private static final long serialVersionUID = 8792016278154286340L;

	/** id **/
	private String id;

	/** 入库单号 **/
	private String stockInNo;

	/** 入库类型（1.货品采购入库 2.订单退换货入库 3.次品换货入库 4.借出归还入库 5.调拨入库 6.其他入库 ) **/
	private Integer stockInType;

	/** 入库类型单号 **/
	private String stockInTypeNo;

	/** 仓库编号 **/
	private String whNo;
	
	/** 供应商编号 **/
	private String supNo;
	
	/** 采购单号 **/
	private String purNo;
	
	/** 审核状态（0.未审核 1.已审核) **/
	private Integer stockInState;

	/** 入库，创建人员 **/
	private String creater;
	
	/** 入库，创建日期 **/
	private Date createTime;
	
	/** 修改人员 **/
	private String updater;
	
	/** 修改日期 **/
	private Date updateTime;
	
	/** 删除标识 **/
	private Integer deletedFlag;

	@Id
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "STOCKIN_NO")
	public String getStockInNo() {
		return stockInNo;
	}

	public void setStockInNo(String stockInNo) {
		this.stockInNo = stockInNo;
	}

	@Column(name = "STOCKIN_TYPE")
	public Integer getStockInType() {
		return stockInType;
	}

	public void setStockInType(Integer stockInType) {
		this.stockInType = stockInType;
	}

	@Column(name = "STOCKIN_TYPE_NO")
	public String getStockInTypeNo() {
		return stockInTypeNo;
	}

	public void setStockInTypeNo(String stockInTypeNo) {
		this.stockInTypeNo = stockInTypeNo;
	}

	@Column(name = "STOCKIN_STATE")
	public Integer getStockInState() {
		return stockInState;
	}

	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "CREATER")
	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public void setStockInState(Integer stockInState) {
		this.stockInState = stockInState;
	}

	@Column(name = "PUR_NO")
	public String getPurNo() {
		return purNo;
	}

	public void setPurNo(String purNo) {
		this.purNo = purNo;
	}

	@Column(name = "WH_NO")
	public String getWhNo() {
		return whNo;
	}

	public void setWhNo(String whNo) {
		this.whNo = whNo;
	}

	@Column(name = "DELETED_FLAG")
	public Integer getDeletedFlag() {
		return deletedFlag;
	}

	public void setDeletedFlag(Integer deletedFlag) {
		this.deletedFlag = deletedFlag;
	}

	@Column(name = "UPDATER")
	public String getUpdater() {
		return updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}
	
	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

	@Column(name = "SUP_NO")
	public String getSupNo() {
		return supNo;
	}

	public void setSupNo(String supNo) {
		this.supNo = supNo;
	}

}